package com.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.common.enumbean.UserStatus;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor()
@TableName("sys_user")
public class SysUser extends BaseBean{
// //
// CREATE TABLE sys_user (
//            id INT PRIMARY KEY AUTO_INCREMENT COMMENT '用户ID',
//            username VARCHAR(50) UNIQUE NOT NULL COMMENT '用户名',
//    password VARCHAR(100) NOT NULL COMMENT '加密密码',
//    email VARCHAR(100) COMMENT '邮箱',
//    phone CHAR(11) COMMENT '手机号',
//    is_super_administrator TINYINT DEFAULT 0,
//    status ENUM('正常','禁用') DEFAULT '正常' COMMENT '账号状态',
//    create_at DATETIME DEFAULT CURRENT_TIMESTAMP,
//    updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
//) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
@TableId(type= IdType.AUTO)
    private Integer id;
    private String username;
    private String password;
    private String email;
    private String phone;
    private Integer is_super_administrator;
    private UserStatus status;


}
